package cn.com.connext.scrm.domain.master;

import com.connext.common.domain.UUIDDomain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/***
 * DWA用户表
 * @author WANG633
 */
@Entity
@Table(name = "dwa_user")
public class DwaUser implements UUIDDomain, Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    @Column(name = "union_id",length = 50)
    private String unionId;

    @Column(name = "open_id",length = 50)
    private String openId;

    @Column(name = "code",nullable = false,length = 50)
    private String code;

    @Column(name = "name",length = 50)
    private String name;

    @Column(name = "mobile",nullable = false,length = 20)
    private String mobile;

    @Column(name = "belongs",length = 50)
    private String belongs;

    @Column(name = "remark",length = 500)
    private String remark;

    @Column(name = "end_time")
    private Date endTime;

    @Column(name="is_delete")
    private boolean deleted=false;

    @Column(name="create_time")
    private Date createTime;

    @Column(name="create_user",length = 50)
    private String  createUser;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "update_user",length = 50)
    private String updateUser;

    @Column(name="createdIndex",nullable = false)
    private Long createdIndex;


    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getBelongs() {
        return belongs;
    }

    public void setBelongs(String belongs) {
        this.belongs = belongs;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Long getCreatedIndex() {
        return createdIndex;
    }

    public void setCreatedIndex(Long createdIndex) {
        this.createdIndex = createdIndex;
    }
}
